﻿using StackAttack_WindowsFormApp.Helper_Forms;
using StackAttack_WindowsFormApp.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace StackAttack_WindowsFormApp
{
    public partial class MenuForm : Form
    {
        MainApp app;
        public MenuForm()
        {
            InitializeComponent();
            
            this.BackgroundImage = Image.FromFile(PathFinder.GetFullPathToFile("Images\\background_menu.jpg"));
            
            this.StartGame.Image = Image.FromFile(PathFinder.GetFullPathToFile("Images\\play_button.png"));
            this.Leaderboard.Image = Image.FromFile(PathFinder.GetFullPathToFile("Images\\leaderboard_button.png"));
            this.Options.Image = Image.FromFile(PathFinder.GetFullPathToFile("Images\\options_icon.png"));
        }

       
        private void StartGame_Click(object sender, EventArgs e)
        {
            app = new MainApp();
            this.Hide();

            app.ShowDialog();
        }

        private void Leaderboard_Click(object sender, EventArgs e)
        {
            LeaderboardForm leaderboard = new LeaderboardForm();
            
            leaderboard.Show();

        }

        private void Exit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void Options_Click(object sender, EventArgs e)
        {
            OptionForm optionForm = new OptionForm();
            optionForm.ShowDialog();
        }

        
       
    }
}
